package pers.jason.wppm.auth.api.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * @ClassName: UserUpdateCondition
 * @Author: JZH
 * @Date: 2018/12/24 21:28
 */
@Data
@Api(value="修改用户信息传递参数")
public class UserUpdateCondition extends UserQueryCondition {

    @ApiModelProperty(value = "头像url")
    private String headImg;

    @Past(message = "生日必须是历史时间")
    @ApiModelProperty(value = "生日")
    private Date birthday;

    @NotBlank(message = "id不能为空")
    @ApiModelProperty(value = "用户id")
    private String userId;

}
